package com.zzw.testdemo01.item;

import com.zzw.testdemo01.registry.ModGroup;
import net.minecraft.item.Food;
import net.minecraft.item.Item;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Effects;

public class OriginApple extends Item {

    private static final Food food = (new Food.Builder())
            .nutrition(20)
            .saturationMod(10)
            .alwaysEat()
            .effect(() -> new EffectInstance(Effects.HEALTH_BOOST, 3 * 20, 1), 1)
            .effect(() -> new EffectInstance(Effects.SATURATION, 3 * 20, 1), 1)
            .build();

    public OriginApple() {
        super(new Properties().food(food).tab(ModGroup.ZZW_GROUP));
    }
}
